package com.bw.module_mine

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.bw.lib_common.arouter.Router
import com.bw.lib_common.base.BaseActivity
import com.bw.lib_common.base.BaseFragment
import com.bw.module_mine.databinding.ActivityMineBinding
import com.bw.module_mine.databinding.FragmentMineBinding
import com.bw.module_mine.login.viewmodel.UserViewModel
import dagger.hilt.android.AndroidEntryPoint


@AndroidEntryPoint
@Route(path = Router.Ui.MineFragment)
class MineFragment : BaseFragment<UserViewModel,FragmentMineBinding>() {
    override val mLayoutResId: Int
        get() = R.layout.fragment_mine

    override fun initData() {
        mBinding.headIv.setOnClickListener(){
            ARouter.getInstance().build(Router.Ui.LoginActivity).navigation()
        }
        mBinding.visibleManager.setOnClickListener {
            ARouter.getInstance().build(Router.Ui.VisitActivity).navigation()
        }
        mBinding.lifeService.setOnClickListener {
            ARouter.getInstance().build(Router.Ui.CashierDeskActivity).navigation()
        }
    }


}